package com.yishan.json;

import com.alibaba.fastjson.annotation.JSONField;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author yishan
 * @Date 2021/9/22 0022 10:47
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student implements Serializable {

	@JSONField(name = "ID", ordinal = 0)
	private String id;
	@JSONField(name = "NAME",ordinal = 1)
	private String name;
	@JSONField(name = "AGE",ordinal = 2)
	private String age;
	@JSONField(name = "ADDRESS",ordinal = 3)
	private String address;
	@JSONField(name = "BIRTHDAY",ordinal = 4,format = "yyyyMMdd")
	private Date birthday;

}
